﻿using B.S.EventHandle.ErrorCode;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace B.S.SmartStorPro.Domain
{
    //// <summary>
    /// 销售管理表
    /// </summary>
    public class SalesManagement
    {
        /// <summary>
        /// 销售唯一标识
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int SalesID { get; set; }
        /// <summary>
        /// 销售订单号
        /// </summary>
        /// 
        [MaxLength(50)]
        public string SalesOrderCode {  get; set; }
        /// <summary>
        /// 单据类型
        /// </summary>
        public int DocumentsTypeId {  get; set; }

        /// <summary>
        /// 订单Id
        /// </summary>
        public int OrderId {  get; set; }
        /// <summary>
        /// 产品ID
        /// </summary>
        public int ProductId { get; set; }

        /// <summary>
        /// 客户编号--外键
        /// </summary>
        public int CustomerId { get; set; }
        /// <summary>
        /// 客户编号
        /// </summary>
        /// 
        [MaxLength(50)]
        public string CustomerCode { get; set; }

        /// <summary>
        /// 客户名称
        /// </summary>
        /// 
        [MaxLength(50)]
        public string ClientName {  get; set; }

        /// <summary>
        /// 联系人
        /// </summary>
        /// 
        [MaxLength(50)]
        public string ContactName { get; set; }

        /// <summary>
        /// 电话
        /// </summary>
        /// 
        [MaxLength(50)]
        public string Phone {  get; set; }

      
        /// <summary>
        /// 发货日期
        /// </summary>
        public DateTime? DeliveryDate { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        /// 
        [MaxLength(50)]
        public string Remarks { get; set; }

        /// <summary>
        /// 制单人
        /// </summary>
        /// 
        [MaxLength(50)]
        public string CreatedBy { get; set; }


        /// <summary>
        /// 制单时间
        /// </summary>
        public DateTime CreationTime { get; set; }




    }
}
